package com.xinzi.apartment.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * 
 * @author xinzi
 * @email 1228604898@qq.com
 * @date 2021-10-04 17:16:18
 */
@Data
@TableName("dormitory_info")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DormitoryInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(type = IdType.INPUT)
	private Integer id;
	/**
	 * 可住人数
	 */
	private Integer maxLiveNum;
	/**
	 * 剩余空位
	 */
	private Integer remainNum;
	/**
	 * 住宿费用
	 */
	private BigDecimal cost;
	/**
	 * 电话
	 */
	private String phone;
	/**
	 * 公寓楼号
	 */
	private Integer flatNo;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
